package org.jeecg.modules.gift.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.gift.entity.GiftActivity;
import org.jeecg.modules.gift.entity.GiftActivityUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.gift.entity.GiftActivityUserItem;

/**
 * @Description: 活动用户
 * @Author: jeecg-boot
 * @Date:   2024-07-12
 * @Version: V1.0
 */
public interface GiftActivityUserMapper extends BaseMapper<GiftActivityUser> {

    /**
     * 用户参与的活动
     * @param page
     * @param userId
     * @return
     */
    IPage<GiftActivity> selectPageUserActivityList(Page<GiftActivity> page, @Param("userId") String userId);


    /**
     * 活动参与的用户
     * @param page
     * @param activityId
     * @return
     */
    IPage<GiftActivityUserItem> selectPageActivityUserList(Page<GiftActivityUserItem> page, @Param("activityId") String activityId);




}
